workspace(name="ptn")

workspace(name="stage4")

load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")

git_repository(
        name = "configor",
        build_file = "//third_party/configor:configor.BUILD",
        remote="git@github.com:Nomango/configor.git",
        commit="3bcfce802226bef5cc71c6adc3e33fb57f3bd495"
)

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
        name = "nlohmann",
        url="https://github.com/nlohmann/json/archive/refs/tags/v3.11.2.tar.gz",
        build_file = "//third_party/nlohmann:nlohmann.BUILD",
        strip_prefix="json-3.11.2"
)

http_archive(
        name = "configor",
        url="https://github.com/Nomango/configor/archive/refs/tags/v0.9.17.tar.gz",
        build_file = "//third_party/configor:configor.BUILD",
        strip_prefix="configor-0.9.17"
)



# /WORKSPACE file
#http_archive(
#    name = "com_github_nlohmann_json",
#    build_file = "//third_party/nlohmann:nlohmann.BUILD", # see below
#    sha256 = "4cf0df69731494668bdd6460ed8cb269b68de9c19ad8c27abc24cd72605b2d5b",
#    strip_prefix = "json-3.9.1",
#    urls = ["https://github.com/nlohmann/json/archive/v3.9.1.tar.gz"],
#)

#http_archive(
#    name = "com_github_jbeder_yaml_cpp",
#    build_file = "//third_party/yaml_cpp:yaml_cpp.BUILD", # see below
#    sha256 = "77ea1b90b3718aa0c324207cb29418f5bced2354c2e483a9523d98c3460af1ed",
#    strip_prefix = "yaml-cpp-yaml-cpp-0.6.3",
#    urls = [
#        "https://apollo-system.cdn.bcebos.com/archive/6.0/yaml-cpp-0.6.3.tar.gz",
#        "https://github.com/jbeder/yaml-cpp/archive/yaml-cpp-0.6.3.tar.gz"
#    ]
#)

